package com.spring.learn.service;

import com.spring.learn.domain.TbUser;
import org.springframework.stereotype.Service;

@Service
public class UserClientFallback implements UserClient {

    @Override
    public TbUser queryById(Long id) {
        TbUser user = new TbUser();
        user.setId(500L);
        user.setName("异常用户");
        return user;
    }
}
